<?php

namespace Part09_PrototypeMode\Code4;

require_once '../../autoload.php';

$a = new Resume('张三');
$a->setPersonalInfo('男', 30);
$a->setWorkExperience('1998-2000', 'xx公司');

$b = $a->cloneObj();
$b->setWorkExperience('2020-2021', 'YY公司');
$c = $a->cloneObj();
$c->setWorkExperience('1990-1991', 'zz公司');

$a->display();
$b->display();
$c->display();